home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Utilities
/
Printer
/
djf_for_3.0
/
config
next >
Wrap
Text File
|
1992-10-18
|
1KB
|
65 lines
#! /bin/sh
# Hacked for a simpler installation by Reimer Mellin
#
echo Welcome !
echo
echo The installation procedure begins ...
for i in USdj USdj500 USdj500C EUROdj EUROdj500 EUROdj500C; do
if [ \! -f $i ]
then
echo The binary file $i is missing!!!
echo get a correct archive ... exiting
exit 1
fi
done
echo -n Do you want a default letter format or a DIN-A4 format [l/a] ?
read yesno
case $yesno in
l|L) PG=-DLETTER
cou=US
;;
a|A) PG=-DA4
cou=EURO
;;
*) echo wrong answer. get yourself together! bye!
exit 1;;
esac
echo -n Do you have a Deskjet/Deskjet+[0] or Deskjet500[1] or Deskjet500C/550C[2] ?
read TYP
case $TYP in
0) MODES="-DUSE_2"
pgm=dj
;;
1) MODES="-DUSE_2 -DUSE_3"
pgm=dj500
;;
2) MODES="-DUSE_2 -DUSE_3 -DUSE_9"
pgm=dj500C
;;
*) echo wrong answer. get yourself together! bye!
exit 1;;
esac
echo -n Enter your serial port [e.g. ttyfb]:
read PORT
echo -n Enter the serial speed [e.g. 19200]:
read SPEED
echo
if [ -d /NextLibrary/PrinterTypes ]
then
PPDDIR=/NextLibrary/PrinterTypes
PPDFILE=HP_Deskjet_500.ppd
echo You seem to have a 3.0 system
else
PPDDIR=/usr/lib/NextPrinter/pdf
PPDFILE=HP_Deskjet_500.pdf
echo You still seem to have a 2.1/2.2 system. Wise move....
fi
echo
echo Okay ... copying binary and installing
cp $cou$pgm djf
make PPDDIR=$PPDDIR PPDFILE=$PPDFILE TTY=$PORT SPEED=$SPEED installit
echo finished ... don't forget to delete any old printcap entries
echo and old Deskjet PPD/PDF files!
echo happy printing! bye....